* xdisp.c (redisplay_window): Compute the scrollbar start and end
authorJim Blandy <jimb@redhat.com>
Wed, 19 May 1993 19:13:31 +0000 (19:13 +0000)
committerJim Blandy <jimb@redhat.com>
Wed, 19 May 1993 19:13:31 +0000 (19:13 +0000)
properly.

src/xdisp.c

index f37f1d4e976501538b26ae6e3a0bfd4beead7897..f034bb203e6c3e289d4db433caf537eaed9b021d 100644 (file)
@@ -1069,10 +1069,10 @@ done:
       if (! MINI_WINDOW_P (w)
          || (w == XWINDOW (minibuf_window) && ! echo_area_glyphs))
        {
-         start = startp;
+         start = startp - BEGV;
          /* I don't think this is guaranteed to be right.  For the
             moment, we'll pretend it is.  */
-         end = Z - XINT (w->window_end_pos);
+         end = Z - XINT (w->window_end_pos) - BEGV;
          whole = ZV - BEGV;
 
          if (end < start) end = start;